Socket
Socket
Sign inDemoInstall

lodash.keys

Package Overview
Dependencies
3
Maintainers
5
Versions
28
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

lodash.keys


Version published
Weekly downloads
3M
decreased by-8.04%
Maintainers
5
Install size
36.7 kB
Created
Weekly downloads
 

Package description

What is lodash.keys?

The lodash.keys package is a utility library that provides a method to retrieve the keys of an object. It is part of the larger Lodash library, which offers a wide range of utility functions for common programming tasks.

What are lodash.keys's main functionalities?

Retrieve Object Keys

This feature allows you to retrieve the keys of an object. The code sample demonstrates how to use lodash.keys to get the keys of an object and print them to the console.

const _ = require('lodash.keys');
const obj = { a: 1, b: 2, c: 3 };
const keys = _.keys(obj);
console.log(keys); // ['a', 'b', 'c']

Other packages similar to lodash.keys

Readme

Source

lodash.keys v3.1.2

The modern build of lodash’s _.keys exported as a Node.js/io.js module.

Installation

Using npm:

$ {sudo -H} npm i -g npm
$ npm i --save lodash.keys

In Node.js/io.js:

var keys = require('lodash.keys');

See the documentation or package source for more details.

Keywords

FAQs

Last updated on 30 Jun 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc